package com.daisuxia.web.spider;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 存放规则中主属性
 * 
 * @author simalin
 * 
 */
public class SchemeRuleDto implements Serializable {

	private static final long serialVersionUID = -8996550327377807589L;

	private String status; // 状态判断1：有效 0：无效

	private String siteId; // 1:天猫 2：京东 。。。。。

	private String infoKey; // id/class选择器

	private String infoValue; // 选择器要选择的属性值

	private String select; // 属性

	private List<RulesDto> rulesList; // 属性参数存放

	private String parentStatus; // scheme 1：有效 0：无效

	private String parentVersion; // 版本。。

	private String hostUrl; // 请求url

	private String pageUrl; // 分页url

	private String enCode; // 编码

	private String type; // 1：列表 0:详情

	private Date createDate; // 创建时间

	private Date updateDate; // 更新时间

	private Date crawlDate; // 抓取时间

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSiteId() {
		return siteId;
	}

	public void setSiteId(String siteId) {
		this.siteId = siteId;
	}

	public String getInfoKey() {
		return infoKey;
	}

	public void setInfoKey(String infoKey) {
		this.infoKey = infoKey;
	}

	public String getInfoValue() {
		return infoValue;
	}

	public void setInfoValue(String infoValue) {
		this.infoValue = infoValue;
	}

	public List<RulesDto> getRulesList() {
		return rulesList;
	}

	public void setRulesList(List<RulesDto> rulesList) {
		this.rulesList = rulesList;
	}

	public String getParentStatus() {
		return parentStatus;
	}

	public void setParentStatus(String parentStatus) {
		this.parentStatus = parentStatus;
	}

	public String getParentVersion() {
		return parentVersion;
	}

	public void setParentVersion(String parentVersion) {
		this.parentVersion = parentVersion;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Date getCrawlDate() {
		return crawlDate;
	}

	public void setCrawlDate(Date crawlDate) {
		this.crawlDate = crawlDate;
	}

	public String getHostUrl() {
		return hostUrl;
	}

	public void setHostUrl(String hostUrl) {
		this.hostUrl = hostUrl;
	}

	public String getPageUrl() {
		return pageUrl;
	}

	public void setPageUrl(String pageUrl) {
		this.pageUrl = pageUrl;
	}

	public String getSelect() {
		return select;
	}

	public void setSelect(String select) {
		this.select = select;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getEnCode() {
		return enCode;
	}

	public void setEnCode(String enCode) {
		this.enCode = enCode;
	}

	@Override
	public String toString() {
		return "SchemeRuleDto [status=" + status + ", siteId=" + siteId
				+ ", infoKey=" + infoKey + ", infoValue=" + infoValue
				+ ", select=" + select + ", rulesList=" + rulesList
				+ ", parentStatus=" + parentStatus + ", parentVersion="
				+ parentVersion + ", hostUrl=" + hostUrl + ", pageUrl="
				+ pageUrl + ", type=" + type + ", createDate=" + createDate
				+ ", updateDate=" + updateDate + ", crawlDate=" + crawlDate
				+ "]";
	}

}
